import request from '@/utils/request'
/**
 * @description: 获取销量数据
 * @return {*}
 */
export const getSalesDataAPI = () => {
  return request({
    url: 'api/sales',
    method: 'get'
  })
}

/**
 * @description: 获取订单数据
 * @param {*} data
 * @return {*}
 */
export const getOrderDataAPI = (data: string) => {
  return request({
    url: "api/order",
    method: 'post',
    data
  })
}